package com.example.myapplication.soaprequest.request

import com.example.mylibrary.utils.SpUtils
import org.simpleframework.xml.Element
import org.simpleframework.xml.Namespace
import org.simpleframework.xml.NamespaceList
import org.simpleframework.xml.Root

/**
 * 公司公告请求参数
 */
@Root(name = "clientlist", strict = false)
@NamespaceList(Namespace(reference = "http://tempurl.org"))
class CustomerRequest : BaseRequest() {
    @field:Element(name = "opid", required = false)
    var opid: String = SpUtils.get("opId", "") as String

    @field:Element(name = "types", required = false)
    var types: String = ""  // 客户：types=1,供应商types=2,竞争对手types=3,渠道types=4,员工types=5

    @field:Element(name = "filter", required = false)
    var filter: String = ""  // 模糊查询

    @field:Element(name = "isused", required = false)
    var isused: String = ""  // 有效状态   0无效 ,1有效, 非0和1则为全部

    @field:Element(name = "curpage", required = false)
    var curpage: String = "1"

    @field:Element(name = "pagesize", required = false)
    var pagesize: String = "20"
}
